<?xml version="1.0" encoding="UTF-8" ?>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title> 
<script type="text/javascript"  src="js/checkbox.js"></script>
<script src="js/jquery-1.4.4.min.js" type="text/javascript"></script> 
<script src="js/jquery.validate.js" type="text/javascript"></script> 
<script src="js/messages_cn.js" type="text/javascript"></script> 
<script type="text/javascript">
// liuk
//2011年1月4日 11:17:52
jQuery(document).ready(function($){  

	$("#tt").validate({
		rules:{
			"id":{
				required: true,
				min:1,
				number:true
			}
		}
	 });
	$("#pro").validate({
		rules:{
			"profession":{
			required:true,
	        minlength:1
			}
		}
	});
	$("#age").validate({
		rules:{
			"age":{
				required:true,
				min:1,
				number:true
			}
		}
	});
	$("#edu").validate({
		rules:{
			"education":{
				required:true,
				minlength:1
	
			}
		}
	});
	$("#exp").validate({
		rules:{
			"experience":{
				required:true,
				minlength:1
			}
		}
	});
	
 });
</script>
<style type="text/css"> 

#tt label.error {color:#ff0000}
#pro label.error{color:green}
#age label.error{color:#ff0000}
#edu label.error{color:#ff0000}
#exp label.error{color:#ff0000}
</style> 

</head>
<body>
 
<div id="main">
<!-- 添加应聘者 链接 -->
<a href="CandidateDetails.jsp">【添加应聘者】</a>
<a href="age.jsp">【高级查询】</a>

<form action="inviteJob!findById" method="post" id="tt">
ID精确查找:
<input name="id" type="text"/>
<input value="搜索" type="submit"/>
</form>
 <form action="inviteJob!findByProfession" method="get" id="pro">职业：<input name="profession" type="text" value="" /><input type="submit" value="查询" /></form>
 <form action="inviteJob!findByAge" method="get" id="age">年龄：<input name="age" type="text" /><input type="submit" value="查询" /></form>
<form action="inviteJob!findByEducation" method="get" id="edu">教育背景：<input name="education" type="text" /><input type="submit" value="查询" /></form>
<form action="inviteJob!findByExperience" method="get" id="exp">工作经验：<input name="experience" type="text" /><input type="submit" value="查询" /></form>

<a href="inviteJob!IsEmploy">【已录用】</a>
<a href="inviteJob!NoEmploy">【未录用】</a>
<a href="inviteJob!ShowAll">【所有信息】</a>
<!-- 应聘人信息 -->
<form action="inviteJob!deletese" method="post">
<table>
<tr>
<td><input type="checkbox" id="checkall"></input></td>
<td>ID</td>
<td>姓名</td>
<td>性别</td>
<td>年龄</td>
<td>生日</td>
<td>应聘职位</td>
<td>专业</td>
<td>工作经验</td>
<td>学历</td>
<td>电话</td>
<td>登记时间</td>
<td>备注</td>
<td>录用</td>
<td>删除</td>
<td>详情</td>
</tr>

<s:iterator value="pagelist.list">
<tr>    
<td><input name="ids" type="checkbox" value="<s:property value="id"/>"/></td>
<td><s:property value="id"/></td>
<td><s:property value="name"/></td>
<td class="tableBorder_B_dashed"><s:property value="sex"/></td>
<td><s:property value="age"/></td>
<td><s:property value="birthday"/></td>
<td><s:property value="position"/></td>
<td><s:property value="profession"/></td>
<td><s:property value="experience"/></td>
<td><s:property value="education"/></td>
<td><s:property value="telphone"/></td>
<td><s:property value="registTime"/></td>
<td><s:property value="remark"/></td>
<td><s:property value="isEmploied"/></td>
<td><a href="inviteJob!delete?id=<s:property value="id"/>">删除</a></td>
<td><a href="inviteJob!findById?id=<s:property value="id"/>">详情</a></td>
</tr>
</s:iterator>
</table>

 <p><span>全选</span>
    <input id="checkall" type="checkbox" class="checkbox" onclick="selectall()"/>
    <span>取消全选</span>
    <input id="checkcan" type="checkbox" class="checkbox" onclick="cancelselectall()"/>
    <span>反转</span>
    <input id="checkcfan" type="checkbox" class="checkbox" onclick="selectfan()"/>
    <input type="submit" value="删除所选" /> 
</p>
</form>
<s:if test="%{ids?=null}">
  <span>ID为</span><s:property value="ids"/>的已经被删除
</s:if>

 <div id="nav">
<s:if test="%{pagelist.pageNum!=1}">
<s:a href="%{pagelist.url}%{pagelist.para}pagelist.pageNum=%{pagelist.pagePreNum}">上一页</s:a>
</s:if>

<s:iterator value="pagelist.pageNums" status="st">
<s:if test="%{pagelist.pageNum==#st.index+1}">
<s:property/>
</s:if>
<s:else>
<s:a href="%{pagelist.url}%{pagelist.para}pagelist.pageNum=%{#st.index+1}"><s:property/></s:a>
</s:else>
</s:iterator>
<s:if test="%{pagelist.pageNum!=pagelist.pageTotalCount}">
<s:a href="%{pagelist.url}%{pagelist.para}pagelist.pageNum=%{pagelist.pageNextNum}">下一页</s:a>
</s:if>
</div>

</div>
<s:debug></s:debug>
</body>
</html>